{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post" enctype="multipart/form-data"> 
                <div class="box-header with-border">
                    <span class="fa fa-check-square-o" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">修改文件</p>    
                </div>
                <div class="box-body">
                  <div class="form-group">
                      <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                            文件标题：
                      </label>
                        <div class="input-group col-md-4 col-sm-12 col-xs-12">
                          <input type="text" name="file_theme" class="form-control" value="{%$file_data.file_theme%}">
                        </div> 
                   </div>
                   <!-- 时间日历标签 -->
                  <div class="form-group">
                        <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                              时间：
                                            </label>
                          <div class="input-group col-sm-2" style="float:left;">
                          <input id="from" class="form-control" value="{%$file_data.file_date%}" name="file_date" type="text">
                          <div class="input-group-addon" style="padding:6px 7px;">
                          <i class="fa fa-calendar"></i>
                          </div>
                          </div>
                  </div>
                  <div style="clear: both; height: 14px;"></div>
                  <div class="form-group">
                          <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                          发布人：
                          </label>
                          <div class="input-group col-md-4 col-sm-12 col-xs-12">
                             <input type="text" name="user_id" class="form-control" >
                          </div> 
                  </div>
                  <div class="form-group">
                      <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                             文件说明：
                      </label>
                        <div class="input-group col-md-9 col-sm-12 col-xs-12">
                            <textarea id="category_content" name="file_sec" rows="8" style="width: 100%" ></textarea>
                        </div> 
                  </div>                
                  <div class="form-group">
                      <label for="inputPassword3" class="col-md-1 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                             附件：
                      </label>
                      <div class="input-group col-md-4 col-sm-12 col-xs-12">
                          <input type="file"  name="file_name" multiple="mutiple">
                      </div> 
                  </div>
               </div><!--box-body --> 
               <input type="text" name="file_id" value="{%$file_data.file_id%}" hidden="hidden">
                   <div class="box-footer text-center">

                         <button type="submit" class="btn btn-primary"> 提 交</button>
                   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
  {%include file="index.footer.tpl.php"%}
  <script>
/* 日历编辑*/
  $(function() {
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
  </script>